import { configureStore } from "@reduxjs/toolkit";
import count from "./feature/count";
import userInfo from './feature/login'

const store = configureStore({
  reducer: {
    count,
    userInfo,
  }
})

export default store

export type RootState = ReturnType<typeof store.getState> // 获取状态机数据类型
export type AppDispatch = typeof store.dispatch // 获取dispatch方法的类型